package com.my.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 收费明细表   每个订单对应多个和明细表
 * </p>
 *
 * @author 张子艺
 * @since 2018-08-25
 */
@TableName("moeny_detailed")
public class MoenyDetailed extends Model<MoenyDetailed> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 订单ID
     */
	@TableField("order_id")
	private Long orderId;
    /**
     * 产生费用的项目类型ID
     */
	@TableField("project_type_id")
	private Long projectTypeId;
    /**
     * 产生费用的项目类型名字
     */
	@TableField("project_type")
	private String projectType;
    /**
     * 本次消费共计
     */
	private Integer money;
    /**
     * 支付渠道
     */
	@TableField("pay_channel")
	private String payChannel;
	/**
     *
     */
	@TableField("create_time")
	private Long createTime;
    /**
     * 补缴尾款
     */
	private Integer overpay;

	@TableField(exist = false)
	private String payWayName;

	public Long getAreaid() {
		return areaid;
	}

	public void setAreaid(Long areaid) {
		this.areaid = areaid;
	}

	@TableField(exist = false)
	private Integer roomName;

	@TableField("areaid")
	private Long areaid;

	public String getPayWayName() {
		return payWayName;
	}

	public void setPayWayName(String payWayName) {
		this.payWayName = payWayName;
	}

	public Integer getRoomName() {
		return roomName;
	}

	public void setRoomName(Integer roomName) {
		this.roomName = roomName;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public Long getProjectTypeId() {
		return projectTypeId;
	}

	public void setProjectTypeId(Long projectTypeId) {
		this.projectTypeId = projectTypeId;
	}

	public String getProjectType() {
		return projectType;
	}

	public void setProjectType(String projectType) {
		this.projectType = projectType;
	}

	public Integer getMoney() {
		return money;
	}

	public void setMoney(Integer money) {
		this.money = money;
	}

	public String getPayChannel() {
		return payChannel;
	}

	public void setPayChannel(String payChannel) {
		this.payChannel = payChannel;
	}

	public Integer getOverpay() {
		return overpay;
	}

	public void setOverpay(Integer overpay) {
		this.overpay = overpay;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "MoenyDetailed{" +
			"id=" + id +
			", orderId=" + orderId +
			", projectTypeId=" + projectTypeId +
			", projectTyoe=" + projectType +
			", money=" + money +
			", payChannel=" + payChannel +
			", overpay=" + overpay +
			"}";
	}
}
